from typing import List

class Solution(object):
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        result = []
        if not nums:
            return result
        n = len(nums)

        for i in range(n-1):
            for j in range(i+1,n):
                if nums[i]+nums[j] == target:
                    result.append(i)
                    result.append(j)
                    break

        return result

if __name__=="__main__":
    solution = Solution()
    re=solution.twoSum([2,7,11,15],9)
    print(re)